package com.xuecheng.rocketmq.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "aaa",consumerGroup = "test-producer-group")
public class SimpleConsumerListener implements RocketMQListener<String> {


    @Override
    public void onMessage(String msg) {
        System.out.println(msg);
    }
}
